<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用js模拟分页的样式5个分页和上下页共6个按钮</title>
    <link rel="stylesheet" href="./css/page_fun.css">
</head>

<body>
    <div class="page-c">
        <ul id="pagenav"></ul>
    </div>
    <script type="text/javascript" src="./javascripts/jquery-1.11.3.min.js"></script>
    <script type="text/javascript" src="./javascripts/page.js"></script>
    <script type="text/javascript">
        var tempPage=1;
        $("#pagenav").paging({
			pageNo:1,
			totalPage: 9,
			totalSize: 300,
			callback: function(num) {
                if(tempPage!=num){
                    alert(num);
                }
                tempPage=num;
			}
		});
    </script>
</body>

</html>